function object_properties(properties_type,data_type,field_type) {
	if(typeof field_type == "undefined"){
		//catch
	}
    var ret = "";
    ret += '<div style="float:left;width:50%;">';
	ret += '<h3 class="pull-left">';
	    ret += '<i class="icon-asterisk"></i> ' + "Properties";
	ret += '</h3>';
    ret += '</div>';
    ret += '<div style="float:right;width:50%;text-align:right;margin-top:-5px;">';
	ret += '<input type="button" class="btn-basicBtn" id="popup_cancel" value="Ok" onclick="setFieldProperties()">';
    ret += '</div>';
    ret += '<div class="hr"></div>';
    ret += '<div id="content-dialog-scroll" style="position: relative; margin: 0px auto; padding: 0px; width: 100%; height: 300px;overflow: hidden;" class="ps-container">';
    ret +='<div class="content-dialog" style="width: 95%;height: auto;">';
 //    ret += '<div class="object_properties_content">';
	// ret += '<div class="scrollbarM object_properties_wrapper">';

	switch(properties_type){
		// case "picklist":
		// ret += obj_lblName("pull-left",data_type); 
		// ret += obj_lblInputName("pull-right",data_type); 
		// ret += obj_PlaceHolder("pull-left",data_type); 
		// ret += obj_Tooltip("pull-right",data_type); 
		// ret += obj_lblFontWeight("pull-left",data_type); 
		// ret += obj_lblFontSize("pull-right",data_type); 
		// ret += obj_fldMaxLength("pull-left",data_type);
		// ret += obj_fldHeight("pull-right",data_type);
		// ret += obj_fldWidth("pull-left",data_type);
		// ret += obj_fldType("pull-right",data_type);
		// ret += obj_lblAllow("pull-left",data_type);
		// ret += obj_lblAlignment("pull-right",data_type);
		// ret += obj_lblFontColor("pull-left",data_type); 
		// ret += obj_fldColor("pull-right",data_type);
		// ret += obj_chkETrig("pull-left",data_type);
		// ret += obj_tabIndex("pull-right",data_type);
		
		
		// ret += obj_inputValidation("pull-left",data_type);
		// ret += obj_chkVisibility("pull-right",data_type);
		// ret += obj_inputValidationMessage("pull-left",data_type);
		// ret += obj_defaultValue("pull-right",data_type)
		// ret += picklistSelectionType("pull-left",data_type);
		// break;
	    case "1":
		ret += obj_lblName("pull-left",data_type); 
		ret += obj_lblInputName("pull-right",data_type); 
		ret += obj_PlaceHolder("pull-left",data_type); 
		ret += obj_Tooltip("pull-right",data_type); 
		ret += obj_lblFontWeight("pull-left",data_type); 
		ret += obj_lblFontSize("pull-right",data_type); 
		ret += obj_fldMaxLength("pull-left",data_type);
		ret += obj_fldHeight("pull-right",data_type);
		ret += obj_fldWidth("pull-left",data_type);
		ret += obj_fldType("pull-right",data_type);
		ret += obj_lblAllow("pull-left",data_type);
		ret += obj_lblAlignment("pull-right",data_type);
		ret += obj_lblFontColor("pull-left",data_type); 
		ret += obj_fldColor("pull-right",data_type);
		ret += obj_chkETrig("pull-left",data_type);
		ret += obj_tabIndex("pull-right",data_type);
		
		
		ret += obj_inputValidation("pull-left",data_type);
		ret += obj_chkVisibility("pull-right",data_type);
		ret += obj_inputValidationMessage("pull-left",data_type);
		ret += obj_defaultValue("pull-right",data_type)
		//ret += obj_allowDuplicate("pull-left",data_type);
		if(field_type == "pickList"){
			ret += picklistSelectionType("pull-left",data_type);
		}
		
		break;
	    case "2":
		ret += obj_lblName("pull-left",data_type);
		ret += obj_lblInputName("pull-right",data_type);
		ret += obj_Tooltip("pull-left",data_type);
		ret += obj_addChoices("pull-right",data_type);
		ret += obj_lblFontWeight("pull-left",data_type); 
		ret += obj_lblFontSize("pull-left",data_type);
		ret += obj_lblAllow("pull-right",data_type);
		ret += obj_lblAlignment("pull-left",data_type);
		ret += obj_alignRCField("pull-right",data_type);
		//ret += obj_allowDuplicate("pull-right",data_type);
		ret += obj_lblFontColor("pull-left",data_type);
		ret += obj_tabIndex("pull-right",data_type);
		ret += obj_defaultValueChoices("pull-left",data_type);
		ret += obj_chkETrig("pull-right",data_type);
		break;
	    case "3":
		ret += obj_lblName("pull-left",data_type);
		ret += obj_fldHeight("pull-right",data_type);
		ret += obj_fldWidth("pull-left",data_type);
		ret += obj_lblAllow("pull-right",data_type);
		ret += obj_lblFontColor("pull-left",data_type);
		ret += obj_fldColor("pull-right",data_type);
		break;
	    case "4":
		ret += obj_lblInputName("pull-left",data_type); 
		break;
		case "formtable":
		ret += obj_lblName("pull-left",data_type);
		ret += obj_lblFontWeight("pull-right",data_type); 
		ret += obj_lblFontSize("pull-left",data_type);
		ret += obj_lblFontColor("pull-right",data_type);
		ret += obj_lblAllow("pull-left",data_type);
		ret += obj_repeaterTable("pull-right",data_type);
		//ret += obj_cellColor("pull-left",data_type);

		break; 
		case "tabpanel":
		ret += obj_lblName("pull-left",data_type);
		ret += obj_lblFontWeight("pull-right",data_type); 
		ret += obj_lblFontSize("pull-left",data_type);
		ret += obj_lblFontColor("pull-right",data_type);
		ret += obj_lblAllow("pull-left",data_type);
		ret += obj_propTabName("pull-right",data_type);
		ret += obj_chkETrig("pull-left",data_type);
		// ret += obj_lblInputName("pull-right",data_type);
		break;
		case "label":
		ret += obj_lblName("pull-left",data_type);
		ret += obj_lblFontWeight("pull-right",data_type);
		ret += obj_lblFontSize("pull-left",data_type);
		ret += obj_lblFontColor("pull-right",data_type);
		break;
		case "computed":
			ret += obj_lblName("pull-left",data_type); 
			ret += obj_lblInputName("pull-right",data_type); 
			ret += obj_PlaceHolder("pull-left",data_type); 
			ret += obj_Tooltip("pull-right",data_type); 
			ret += obj_lblFontWeight("pull-left",data_type); 
			ret += obj_lblFontSize("pull-right",data_type); 
			ret += obj_fldMaxLength("pull-left",data_type);
			ret += obj_fldHeight("pull-right",data_type);
			ret += obj_fldWidth("pull-left",data_type);
			ret += obj_fldType("pull-right",data_type);
			ret += obj_lblAllow("pull-left",data_type);
			ret += obj_lblAlignment("pull-right",data_type);
			ret += obj_lblFontColor("pull-left",data_type);
			ret += obj_fldColor("pull-right",data_type);
			ret += processorType_fb("pull-left",data_type);
			ret += processor_fb("pull-right",data_type);
			ret += obj_tabIndex("pull-left",data_type);
		break;
		case "embedview":
		//value="static"
			ret += obj_lblFontSize("pull-left",data_type);
			ret += obj_lblName("pull-right",data_type);
			ret += obj_lblFontWeight("pull-left",data_type);
			ret += obj_lblFontColor("pull-right",data_type);
			ret += obj_lblAllow("pull-left",data_type);
			ret += obj_embedProperty("pull-right","pull-left","pull-right",data_type);
		break;
	}

	ret += '</div>';
    ret += '</div>';
	
    return ret;
    
}

// Hide / Show Properties of objects
function prop_hovering() {
    
    $("body").on("mouseenter",".workspace.formbuilder_ws .setObject",function(){
		var object_id = $(this).attr("data-object-id");
		$("#obj_actions_"+object_id).removeClass("display")
		$("#setObject_"+object_id).css("border-color","#ddd");
	    $("#setObject_" + object_id).addClass("hovering_object");
    });
    $("body").on("mouseleave",".setObject",function(){
	var object_id = $(this).attr("data-object-id");
	$("#obj_actions_"+object_id).addClass("display")
	$("#setObject_"+object_id).css("border-color","transparent");
	    $(".hovering_object").removeClass("hovering_object");
    });
}

/***************************** Object Properties ***********************************/

    /*
    *
    *
    */
    function skipSpace(obj_float,data_type){
    	var ret = ""+
			'<div class="' + obj_float + ' properties_width_container">'+
				'<div class="fields_below">'+
					'<div class="label_below2"><font color="red"></font></div>'+
					'<div class="input_position_below">'+
						'<div></div>'+
					'</div>'+
				'</div>'+
			'</div>';
	    return ret;
    }
    function picklistSelectionType(obj_float,data_type){
    	var ret = ""+
			'<div class="' + obj_float + ' properties_width_container picklistSelectionType">'+
				'<div class="fields_below">'+
					'<div class="label_below2">Picklist Selection Type: <font color="red"></font></div>'+
					'<div class="input_position_below">'+
						'<label><input type="radio" checked="true" value="Single" name="selection_type" data-type="' + data_type + '" class="" data-properties-type="" data-object-id="" />Single</label>'+
						'<label> <input type="radio" value="Multiple" name="selection_type" data-type="' + data_type + '" class="" data-properties-type="" data-object-id="" />Multiple</label>'+
					'</div>'+
				'</div>'+
			'</div>';
	    return ret;
    }
    function obj_propTabName(obj_float,data_type) {
		var ret = ""+
			'<div class="' + obj_float + ' properties_width_container">'+
				'<div class="fields_below">'+
					'<div class="label_below2">Tab Name: <font color="red"></font></div>'+
					'<div class="input_position_below">'+
						'<input type="radio" name="pick_slelection_type" data-type="' + data_type + '" class="form-text obj_prop" data-properties-type="" data-object-id="">'+
						'<input type="radio" name="pick_slelection_type" data-type="' + data_type + '" class="form-text obj_prop" data-properties-type="" data-object-id="">'+
					'</div>'+
				'</div>'+
			'</div>';
	    return ret;
    }

    function obj_propTabPanelName(obj_float,data_type) {
		var ret = ""+
			'<div class="' + obj_float + ' properties_width_container">'+
				'<div class="fields_below">'+
					'<div class="label_below2">Tab Panel Name: <font color="red"></font></div>'+
					'<div class="input_position_below">'+
						'<input type="text" name="" data-type="' + data_type + '" class="form-text obj_prop" id="prop-tabPanelName" data-properties-type="tabPanelName" data-object-id="" placeholder="Tab Name">'+
					'</div>'+
				'</div>'+
			'</div>';
			alert(ret);
	    return ret;
    }

    function obj_chkVisibility(obj_float,data_type){
		var ret
    	=	'<div class="' + obj_float + ' properties_width_container chk_Visibility">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">'+"Visibility: "+'  <font color="red"></font></div>'+
					'<div class="input_position_below chk_Visibility_below">'+
				    	'<label><input type="radio" value="yes" class"visibility-choices" name="visibility-choices"/> Yes </label>'+
				    	'<label><input type="radio" value="no" class"visibility-choices" name="visibility-choices"/> No </label>'+
				    	'<label><input type="radio" value="computed" class"visibility-choices" name="visibility-choices"/> Computed </label>'+
				    	'<textarea class="form-textarea visibility-formula"></textarea>'+
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
    }
    function obj_chkETrig(obj_float,data_type){
		var ret
    	=	'<div class="' + obj_float + ' properties_width_container chk_ETrig">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">'+" Refresh trigger"+'  <font color="red"></font></div>'+
					'<div class="input_position_below chk_ETrig_below">'+
				    	'<input type="checkbox" value="yes" id="refreshtrigger" /> Refresh Fields On Change'+
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
    }
    function obj_alignRCField(obj_float,data_type){
    	var labelRC_type = "";
    	if(data_type == "radioButton"){
    		labelRC_type = "Radio";
    	}else if(data_type == "checkbox"){
    		labelRC_type = "Checkbox";
    	}
    	if(labelRC_type.length){
    		var ret
	    	=	'<div class="' + obj_float + ' properties_width_container rcAlignmentProperty">'+
				    '<div class="fields_below">'+
						'<div class="label_below2">'+labelRC_type+' alignment type: <font color="red"></font></div>'+
						'<div class="input_position_below rc_alignment">'+
					    	'<select class="form-select rc-alignment">'+
					    		'<option value="vertical">Vertical</option>'+
					    		'<option value="horizontal">Horizontal</option>'+
					    	'</select>'+
						'</div>'+
				    '</div>'+
				'</div>';
			return ret;
    	}else{
    		return "";
    	}
    }
    function obj_repeaterTable(obj_float,data_type){
    	var ret
    	=	'<div class="' + obj_float + ' properties_width_container repeaterTableOption">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Table Type: <font color="red"></font></div>'+
					'<div class="input_position_below form_table_type">'+
				    	'<select class="form-select form-table-type">'+
				    		'<option value="normal">Default</option>'+
				    		'<option value="dynamic">Dynamic Row</option>'+
				    	'</select>'+
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
    }
    function obj_embedProperty(obj_float1,obj_float2,obj_float3,data_type){
    	var ret
    	=	'<div class="' + obj_float1 + ' properties_width_container embedProperty">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Select Embed Source Form: <font color="red"></font></div>'+
					'<div class="input_position_below embed_source_form">'+
				    	'<select class="form-select embed-source-form" data-type="'+data_type+'" ></select>'+
					'</div>'+
			    '</div>'+ 
			'</div>';
		ret
		+=	'<div class="' + obj_float2 + ' properties_width_container embedProperty">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Source lookup field: <font color="red"></font></div>'+
					'<div class="input_position_below embed_source_lookup_field">'+
						'<label><input type="radio" value="static" checked="true" name="embed_sc_choice" class=""/>Static</label>'+
						'<label> <input type="radio" value="computed" name="embed_sc_choice" class=""/>Computed</label>'+
						'<div class="choice-content">'+
							//embed-source-lookup-field
							'<div class="embed-source-lookup-field-pc">'+
								'<select class="form-select embed-source-lookup-field" data-type="'+data_type+'" ></select>'+
							'</div>'+
							'<div style="display:none;" class="embed-source-lookup-field-computed-pc">'+
								'<textarea  class="form-textarea embed-source-lookup-field-computed" data-type="'+data_type+'"></textarea>'+
							'</div>'+
						'</div>'+
					'</div>'+
			    '</div>'+
			'</div>';
		ret
		+=	'<div class="' + obj_float3 + ' properties_width_container embedProperty">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Search Field: <font color="red"></font></div>'+
					'<div class="input_position_below embed_result_field">'+
				    	'<select class="form-select embed-result-field" data-type="'+data_type+'" ></select>'+
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
    }
    function obj_inputValidation(obj_float,data_type){
    	var ret
    	=	'<div class="' + obj_float + ' properties_width_container">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Input validation formula: <font color="red"></font></div>'+
					'<div class="input_position_below obj_inputValidation">'+
				    	'<textarea class="form-textarea field-formula-validation" data-type="'+data_type+'" style="resize:vertical;"></textarea>'+
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
    }
    function obj_inputValidationMessage(obj_float,data_type){
    	var ret
    	=	'<div class="' + obj_float + ' properties_width_container">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Input validation message: <font color="red"></font></div>'+
					'<div class="input_position_below obj_inputValidationMessage">'+
				    	'<textarea class="form-textarea field-formula-validation-message" data-type="'+data_type+'" style="resize:vertical;"></textarea>'+
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
    }
    function obj_defaultValueChoices(obj_float,data_type){
		var ret
    	=	'<div class="' + obj_float + ' properties_width_container">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Default value: <font color="red"></font></div>'+
					'<div data-type="'+data_type+'" class="input_position_below obj_defaultValueChoices">'+
				    	
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
	}
	function obj_defaultValue(obj_float,data_type){
		var ret
    	=	'<div class="' + obj_float + ' properties_width_container">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Default value: <font color="red"></font></div>'+
					'<div class="input_position_below">'+
				    	'<label><input data-properties-type="defaultValueType" class="" value="static" type="radio" checked="checked" name="default_val"/>Static </label>'+
				    	'<label><input data-properties-type="defaultValueType" class="" value="computed" type="radio"  name="default_val"/>Computed </label>'+
				    	'<textarea data-type="' + data_type + '" class="form-textarea obj_prop" id="" data-properties-type="defaultValue" data-object-id="" style="resize:vertical;"></textarea>'+
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
	}
    function obj_tabIndex(obj_float,data_type){
    	var ret
    	=	'<div class="' + obj_float + ' properties_width_container">'+
			    '<div class="fields_below">'+
					'<div class="label_below2">Field Tab Index: <font color="red">*</font></div>'+
					'<div class="input_position_below">'+
				    	'<input type="number" min="1" name="" data-type="' + data_type + '" class="form-text obj_prop" id="" data-properties-type="tabIndex" data-object-id="" placeholder="Tabindex">'+
					'</div>'+
			    '</div>'+
			'</div>';
		return ret;
    }
    function obj_lblName(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Label Name: <font color="red">*</font></div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" name="" data-type="' + data_type + '" class="form-text obj_prop" id="" data-properties-type="lblName" data-object-id="" placeholder="Label Name">';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_lblInputName(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Field Name: <font color="red">*</font></div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" name="" data-type="' + data_type + '" class="form-text obj_prop" id="" data-properties-type="lblFldName" data-object-id="" placeholder="Field Name">';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_PlaceHolder(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Text Placeholder: <font color="red">*</font></div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" name="" data-type="' + data_type + '" class="form-text obj_prop" id="" data-properties-type="lblPlaceHolder" data-object-id="" placeholder="Text Placeholder">';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_Tooltip(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Tooltip (Help): <font color="red">*</font></div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" name="" data-type="' + data_type + '" class="form-text obj_prop" id="" data-properties-type="lblTooltip" data-object-id="" placeholder="Tooltip">';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_lblFontWeight(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Label Font Weight: <font color="red">*</font></div>';
		ret += '<div class="input_position_below">';
		    ret += '<select data-type="' + data_type + '" class="form-select obj_prop" data-object-id="" id="" data-properties-type="lblFontWg">';
			ret += '<option value="">------Select------</option>';
			ret += '<option value="normal">Normal</option>';
			ret += '<option value="bold">Bold</option>';
		    ret += '</select>';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_lblFontSize(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Label Font Size: <font color="red">*</font></div>';
		ret += '<div class="input_position_below">';
		    ret += '<select data-type="' + data_type + '" class="form-select obj_prop" data-object-id="" id="" data-properties-type="lblFontSize">';
		    ret += '<option>------Select------</option>';
		    ret += '<option value="6px">6px</option>';
		    ret += '<option value="8px">8px</option>';
		    ret += '<option value="9px">9px</option>';
		    ret += '<option value="10px">10px</option>';
		    ret += '<option value="11px">11px</option>';
		    ret += '<option value="12px">12px</option>';
		    ret += '<option value="14px">14px</option>';
		    ret += '<option value="18px">18px</option>';
		    ret += '<option value="24px">24px</option>';
		    ret += '<option value="30px">30px</option>';
		    ret += '<option value="36px">36px</option>';
		    ret += '<option value="48px">48px</option>';
		    ret += '<option value="60px">60px</option>';
		    ret += '<option value="72px">72px</option>';
		    ret += '</select>';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
	
    function obj_lblAllow(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Allow Label:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<select data-type="' + data_type + '" name="" class="form-select obj_prop" id="" data-properties-type="lblAllowLabel" data-object-id="">';
			ret += '<option value="Yes">Yes</option>';
			ret += '<option value="No">No</option>';
		    ret += '</select>';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_addChoices(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">List:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<textarea name="" data-type="' + data_type + '" class="form-textarea obj_prop" id="" data-properties-type="lblChoices" data-object-id="" style="height:90px;">';
		    ret += '</textarea>';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_fldMaxLength(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Field Max Length: <font color="red">*</font></div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" name="" data-type="' + data_type + '" class="form-text obj_prop prop_numeric_val" id="" data-properties-type="lblMaxLength" data-object-id="" placeholder="Max Length">';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_fldHeight(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Field Height:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" data-type="' + data_type + '" class="form-text obj_prop prop_numeric_val" id="" data-properties-type="lblFieldHeight" data-object-id="" placeholder="Field Height"/>';
		ret += '</div>';
		ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_fldWidth(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Field Width:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" data-type="' + data_type + '" class="form-text obj_prop prop_numeric_val" id="" data-properties-type="lblFieldWidth" data-object-id="" placeholder="Field Width"/>';
		ret += '</div>';
		ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_fldType(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Field Type:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<select name="" data-type="' + data_type + '" class="form-select obj_prop" id="" data-properties-type="lblFieldType" data-object-id="">';
			ret += '<option data-input-type="Text" value="longtext">Text</option>';
			ret += '<option data-input-type="Currency" value="float">Currency</option>';
			ret += '<option data-input-type="Number" value="float">Number</option>';
		    ret += '</select>';
		ret += '</div>';
		ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_allowDuplicate(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Allow Duplicate:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="button" name="" data-type="' + data_type + '" class="btn-basicBtn obj_prop" id="" data-properties-type="lblAllowDuplicate" data-object-id="" value="Yes">';
		ret += '</div>';
	    ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_lblFontColor(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Label Font Color:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" data-type="' + data_type + '" class="chngColor" data-properties-type="lblFontolor" data-type="label"/>';
		ret += '</div>';
		ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_fldColor(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Field Color:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<input type="text" data-type="' + data_type + '" class="chngColor" data-properties-type="lblFieldColor" data-type="button"/>';
		ret += '</div>';
		ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    
    function obj_lblAlignment(obj_float,data_type) {
	var ret = "";
	ret += '<div class="' + obj_float + ' properties_width_container">';
	    ret += '<div class="fields_below">';
		ret += '<div class="label_below2">Label Alignment:</div>';
		ret += '<div class="input_position_below">';
		    ret += '<select name="" data-type="' + data_type + '" class="form-select obj_prop" id="" data-properties-type="lblAlignment" data-object-id="">';
			ret += '<option value="alignTop">Align Top</option>';
			ret += '<option value="alignLeft">Align Left</option>';
		    ret += '</select>';
		ret += '</div>';
		ret += '</div>';
	ret += '</div>';
	    return ret;
    }
    function processorType_fb(obj_float,data_type) {
		var ret = "";
		ret += '<div class="' + obj_float + ' properties_width_container">';
		    ret += '<div class="fields_below">';
			ret += '<div class="label_below2">Processor Type:</div>';
			ret += '<div class="input_position_below">';
			ret += '<select class="form-select workflow-processor-type obj_prop" id="" style="margin-top:0px">'
			ret +=   '<option value="0">--Select--</option>'
			ret +=   '<option value="1">Department Position</option>'
			ret +=   '<option value="2">Company Position</option>'
			ret +=   '<option value="3">Employee</option>'
			ret +=   '<option value="4">Requestor</option>'
			// ret +=   '<option value="5">Field</option>'
			ret +=  '</select>'
			ret += '</div>';
			ret += '</div>';
		ret += '</div>';
		return ret;
    }
    function processor_fb(obj_float,data_type) {
		var ret = "";
		ret += '<div class="' + obj_float + ' properties_width_container">';
		    ret += '<div class="fields_below">';
				ret += '<div class="label_below2">Processor:</div>';
				ret += '<div class="input_position_below">';
					ret += '<select class="form-select workflow-processor obj_prop" id="" style="margin-top:0px">';
		            ret += '<option value="0">--Select--</option>';
		            ret += '</select>';
		            ret += '<img src="/images/loader/loading.gif" class="pull-left display processorLoad"/>';
				ret += '</div>';
			ret += '</div>';
		ret += '</div>';
		return ret;
    }

function setFieldProperties(){
	var object_id = if_undefinded($(".workflow-processor").attr("data-object-id"),"");
	if(object_id){
		var ptype = $(".workflow-processor-type").val();
		var proc = $(".workflow-processor").val();
		var json = $("body").data();
		if(json[''+ object_id +'']){
			json[''+ object_id +'']['processor-type'] = ptype;
			json[''+ object_id +'']['processor'] = proc;
			$("#getFields_"+object_id).attr("processor-type",ptype);
			$("#getFields_"+object_id).attr("processor",proc);

		}
	}
	console.log($("body").data());
}
	    
	    
	    
	    
	    
	    
	    
	    
